FROM centos:7.6.1810
MAINTAINER wayne

# 配置中文字符 默认：LANG="en_US.UTF-8"
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
        && yum -y install kde-l10n-Chinese \
        && localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 \
        && echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf \
        && source /etc/locale.conf \
        && yum clean all
ENV LANG=zh_CN.UTF-8 \
    LC_ALL=zh_CN.UTF-8

COPY jdk1.8 jdk1.8
ENV JAVA_HOME=./jdk1.8
ENV PATH=$JAVA_HOME/bin:$PATH
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
COPY examination-approval.jar .
ADD examination-approval.jar /app.jar
EXPOSE 8072
ENTRYPOINT ["java","-jar","/app.jar"]